﻿@model WebCommit.Web.Models.LoginModel

<table>
	<tr>
		<td>
			Login2
		</td>
		<td id="login">
			@using (Html.BeginForm("Login","UserVis"))
   {
				@Html.AntiForgeryToken()
    <fieldset>
        <legend>LoginModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AutoLogin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AutoLogin)
            @Html.ValidationMessageFor(model => model.AutoLogin)
            @Html.HiddenFor(model => model.RedirctUrl)
        </div>

        <p>
            <input type="submit" value="登录" />
				@Html.ActionLink("注册", "Register", "UserMgr")
        </p>
    </fieldset>
   }
		</td>
	</tr>
</table>
